/* display */

.block {
  display: block;
}

.inline {
  display: inline;
}

.inlineBlock {
  display: inline-block;
}

.inlineFlex {
  display: inline-flex;
}

.table {
  display: table;
}

/* overflow */

.overflowHidden {
  overflow: hidden;
}

.overflowScroll {
  overflow: scroll;
}

.overflowScrollX {
  overflow-x: scroll;
  overflow-y: hidden;
}

.overflowScrollY {
  overflow-x: hidden;
  overflow-y: scroll;
}

.overflowAuto {
  overflow: auto;
}

.overflowAutoY {
  overflow-x: hidden;
  overflow-y: auto;
}

.fit {
  max-width: 100%;
}

/* position */

.relative {
  position: relative;
}

.fixed {
  position: fixed;
}

.absolute {
  position: absolute;
}

.sticky {
  /*
    IE11 Fallback: when sticky is not supported, fall back to relative positioning.
    We do this so if there is a zIndex set on sticky, the stacking context will be correct
  */
  position: relative;
  position: sticky;
}

.top0 {
  top: var(--space-0);
}

.right0 {
  right: var(--space-0);
}

.bottom0 {
  bottom: var(--space-0);
}

.left0 {
  left: var(--space-0);
}

/* size */

.small {
  min-height: 32px;
}

.medium {
  min-height: 40px;
}

.large {
  min-height: 48px;
}

/* box model */

.borderBox {
  box-sizing: border-box;
}

.contentBox {
  box-sizing: content-box;
}

.flex {
  display: flex;
}

@media (--g-sm) {
  .smFlex {
    display: flex;
  }
}

@media (--g-md) {
  .mdFlex {
    display: flex;
  }
}

@media (--g-lg) {
  .lgFlex {
    display: flex;
  }
}

.flexColumn {
  flex-direction: column;
}

.flexWrap {
  flex-wrap: wrap;
}

/* Align items */

.xsItemsStart {
  align-items: flex-start;
}

.xsItemsEnd {
  align-items: flex-end;
}

.xsItemsCenter {
  align-items: center;
}

.xsItemsBaseline {
  align-items: baseline;
}

.xsItemsStretch {
  align-items: stretch;
}

@media (--g-sm) {
  .smItemsStart {
    align-items: flex-start;
  }

  .smItemsEnd {
    align-items: flex-end;
  }

  .smItemsCenter {
    align-items: center;
  }

  .smItemsBaseline {
    align-items: baseline;
  }

  .smItemsStretch {
    align-items: stretch;
  }
}

@media (--g-md) {
  .mdItemsStart {
    align-items: flex-start;
  }

  .mdItemsEnd {
    align-items: flex-end;
  }

  .mdItemsCenter {
    align-items: center;
  }

  .mdItemsBaseline {
    align-items: baseline;
  }

  .mdItemsStretch {
    align-items: stretch;
  }
}

@media (--g-lg) {
  .lgItemsStart {
    align-items: flex-start;
  }

  .lgItemsEnd {
    align-items: flex-end;
  }

  .lgItemsCenter {
    align-items: center;
  }

  .lgItemsBaseline {
    align-items: baseline;
  }

  .lgItemsStretch {
    align-items: stretch;
  }
}

.selfStart {
  align-self: flex-start;
}

.selfEnd {
  align-self: flex-end;
}

.selfCenter {
  align-self: center;
}

.selfBaseline {
  align-self: baseline;
}

.selfStretch {
  align-self: stretch;
}

.justifyStart {
  justify-content: flex-start;
}

.justifyEnd {
  justify-content: flex-end;
}

.justifyCenter {
  justify-content: center;
}

.justifyBetween {
  justify-content: space-between;
}

.justifyAround {
  justify-content: space-around;
}

.justifyEvenly {
  justify-content: space-evenly;
}

.contentStart {
  align-content: flex-start;
}

.contentEnd {
  align-content: flex-end;
}

.contentCenter {
  align-content: center;
}

.contentBetween {
  align-content: space-between;
}

.contentAround {
  align-content: space-around;
}

.contentEvenly {
  align-content: space-evenly;
}

.contentStretch {
  align-content: stretch;
}

/* Fix for Chrome 44 bug: https://code.google.com/p/chromium/issues/detail?id=506893 */

.flexGrow {
  flex: 1 1 auto;

  /* 1 */
  min-height: 0;
  min-width: 0;
}

.flexNone {
  flex: 0 0 auto;
}

.orderFirst {
  order: -1;
}

.orderLast {
  order: 99999;
}

.minWidth60 {
  min-width: 60px;
}

/* Dimensions */

.fullWidth {
  width: 100%;
}

.fullHeight {
  height: 100%;
}
